const tablist=["pages/index/index","pages/group/index","pages/pyq/index","pages/message/index","pages/mine/mine"]

export function navigatetopage(url){
	if(tablist.indexOf(url)>-1){
		uni.switchTab({
			url:url
		})
	}else{
		uni.navigateTo({
			url:url
		})
	}
}